package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_AttachmentLog")
@ApiModel(value = "AttachmentLog", description = "附件操作日记")
public class AttachmentLog implements Serializable {
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
    private String orUnId;

    @Column(name = "docUnId")
	@ApiModelProperty(value = "公文id", required = false)
    private String docUnId;

	@Column(name = "userid")
	@ApiModelProperty(value = "用户id", required = false)
    private String userid;

	@Column(name = "processid")
	@ApiModelProperty(value = "流程id", required = false)
    private String processid;

	@Column(name = "ip")
	@ApiModelProperty(value = "操作id", required = false)
    private String ip;

	@Column(name = "WF_DocCreated")
   	@ApiModelProperty(value = "添加时间", required = false)
    private String docCreated;

	@Column(name = "remark")
   	@ApiModelProperty(value = "备注", required = false)
    private String remark;

    private static final long serialVersionUID = 1L;
}